int get_online_ip(char* domain, char* return_ip)
{// addr = 0x0804DBFA
    int i;
    int _v8;
    int _v36;
    _unknown_ _v40;
    _unknown_ r6;
    int _t9;
    unsigned int _t11;
    struct in_addr _t12;
    int _t15;
    _unknown_ _t17;

    _t9 = __eax;
    _v8 = 0;
    _v36 = 0;
    L08073680(__ebx, __esp, 2, 2);
    socketfd = _t9;
    if(socketfd < 0) {
         *__esp = "create socket failed";
        L08060060();
         *__esp = -1;
        L0805E0C0();
    }
    L0806F910( &dest, 16);
    dest.sin_family = 2;
     *__esp = 53;
    _t11 = L08075240(__esp);
    dest.sin_port.s_addr = _t11;
    _t12 = L08073B40("8.8.8.8");
    dest.sin_addr = _t12;
    send_dns_request(domain);
    _t15 = parse_dns_response(return_ip);
    _v8 = _t15;
     *__esp = socketfd;
    L08052A50();
    return _v8;
}